DocumentDetector

abstract class DocumentDetector(handle: Long) : AutoCloseable

Constructors

Link copied to clipboard
constructor(handle: Long)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
open val nativeHandle: Long

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open fun detectDocument(bitmap: Bitmap): Quadrangle

Detect document in an image bitmap.

open fun detectDocument(image: File): Quadrangle

Detect document in an image file.

open fun detectDocument(imageBuffer: ByteArray, previewWidth: Int, previewHeight: Int, previewStride: Int): Quadrangle

Detect document on a YUV buffer.